package com.tanhua.server.service;

import com.tanhua.server.vo.PageResult;
import com.tanhua.server.vo.QuanZiVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author ldp
 * @date 2021/5/4 11:39
 * 圈子业务封装接口
 */
public interface QuanZiService {
    /**
     * 查询好友发布动态列表
     * @param page
     * @param pageSize
     * @param
     * @return
     */
    public PageResult queryPublishList(Integer page, Integer pageSize);

    String savePublish(String textContent, String location, String latitude, String longitude, MultipartFile[] multipartFile);

    /**
     * 查询推荐动态
     * @param page
     * @param pageSize
     * @return
     */
    PageResult queryRecommendPublishList(Integer page, Integer pageSize);

    Long likeComment(String publishId);

    Long disLikeComment(String publishId);

    Long loveComment(String publishId);

    Long disLoveComment(String publishId);

    QuanZiVo queryById(String publishId);

    PageResult queryCommentList(String publishId, Integer page, Integer pageSize);

    Boolean saveComments(String publishId, String content);
}